
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .one{
            animation-name: move;
            animation-duration: 4s;
            animation-play-state: running;
            animation-timing-function: ease;
            animation: move 4s;
            animation-iteration-count: infinite;

        }
        @keyframes move{
            0%{
                transform: translate(0px,0px);}
            25%{
                transform: translate(200px,450px);
            }
            50%{
                transform: translate(450px,0px);
            }
            75%{
                transform: translate(700px,450px);
            }
            100%{
                transform: translate(950px,0px);
            }
            }
        
    </style>
</head>
<body>
    <div>
        <center> <div style="width: 1000px;height:500px;border:1px solid #000;" class="two">
            <div style="width: 50px;height:50px;border:1px solid #000;position:absolute;" class="one"></div>
        </div>
    </center>

    </div>
    
   
</body>
</html>